﻿using EMoney.IStock.Client.Business.Cpyx;
using EMoney.IStock.Client.Business.CQ;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using ThinkDev.Logging;

namespace EMoney.IStock.Client.WinService
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            //自定义初始化操作
            LoggerGlobal.GlobalInit();

            if (args.Length > 0)
            {
                //GuessProcessBll.ProcessGuess();
                //CpyxBll.ProcessAward();
                //GuessProcessBll.ProcessGuessData();
                //GuessProcessBll.PromotionOutCount(Convert.ToDateTime("2014-9-5"));
                //GuessProcessBll.ProcessGuessType();
                //GuessProcessBll.TotalCountProcess();
                //GuessProcessBll.GuessResultStat(Convert.ToDateTime("2014-9-5"), 372, 164, 1, 0);
            }
            else
            {
                ServiceBase[] ServicesToRun;
                ServicesToRun = new ServiceBase[] 
                { 
                    new Service1() 
                };
                ServiceBase.Run(ServicesToRun);
            }
        }
    }
}
